package com.example.demo.entity.param;

import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author lachesism
 * @Date 2025-01-31 16:46
 **/
@Data
public class PetParam {

    private Long petId;
    private String petName;
    private String specis;
    private Integer age;
    private BigDecimal weight;
    private Byte gender;
    private Date dateOfBirth;
    private String size;
    private String hairLength;
    private String color;
    private String vaccinationRecond;
    private String dewormingRecord;
    private String medicalHistory;
    private String allergyHistory;
    private String personalityTraits;
    private String dietaryHabits;
    private String activityPreferences;
    private  Integer healthType;

    private Integer pageNum = 1;  // 默认值
    private Integer pageSize = 10; // 默认值

    @JsonSetter
    public void setPageNum(Integer pageNum) {
        if (pageNum != null) {
            this.pageNum = pageNum;
        }
    }

    @JsonSetter
    public void setPageSize(Integer pageSize) {
        if (pageSize != null) {
            this.pageSize = pageSize;
        }
    }
}